import {
  IEditorContainerController,
  IEditorProvider,
} from '@ibiz-template/runtime';
import { ISpan } from '@ibiz/model-core';
import { StepCodelistController } from './step-codelist.controller';

export class StepCodeListProvider implements IEditorProvider {
  formEditor: string = 'StepCodeList';

  gridEditor: string = 'StepCodeList';

  async createController(
    editorModel: ISpan,
    parentController: IEditorContainerController,
  ): Promise<StepCodelistController> {
    const c = new StepCodelistController(editorModel, parentController);
    await c.init();
    return c;
  }
}
